package com.ruoyi.yl.costSetting.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.yl.costSetting.domain.YlChargeCategory;
import com.ruoyi.yl.costSetting.vo.YlChargeCategoryVo;
import com.ruoyi.yl.costSetting.mapper.YlChargeCategoryMapper;
import com.ruoyi.yl.costSetting.service.IYlChargeCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 收费项目类型Service业务层处理
 *
 * @author Ming
 * @date 2025-10-21
 */
@Service
public class YlChargeCategoryServiceImpl extends ServiceImpl<YlChargeCategoryMapper, YlChargeCategory> implements IYlChargeCategoryService {

    @Override
    public TableDataInfo<YlChargeCategoryVo> queryList(YlChargeCategoryVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<YlChargeCategoryVo> queryAll(YlChargeCategoryVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public YlChargeCategoryVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
